package com.zy.explore.design.patterns.singleton;

/**
 * 饿汉模式单例
 *
 * @author ZY
 * @date 2021/11/03
 */
public class EagerSingleton {

    private EagerSingleton eagerSingleton = new EagerSingleton();

    private EagerSingleton() {

    }

    public EagerSingleton getInstance() {
        return eagerSingleton;
    }
}
